package com.quickpass.order.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;


@Component
@FeignClient(value = "ruoyi-dishes")
public interface DishesClient {


    /**
     * @description: 减库存
     * @return:
     * @author: 弔人
     * @time: 2023/2/7 0:29
     */
    @PostMapping("/dishes/subtractStock/{id}/{number}")
    public AjaxResult subtractStock(@PathVariable("id") Long id,
                                    @PathVariable("number") Integer number);
}
